// 在此文件中统一生成userTempId

import {v4 as uuidv4} from 'uuid';

export const getUserTempId = ()=> {
  let userTempId = localStorage.getItem('uuid')

  if(!userTempId) {
    localStorage.setItem('uuid',uuidv4())
  }

  return userTempId
}